package xyz.csmcool.imuser.entity.vo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;


/**
 * @author 什锦
 * @Package xyz.csmcool.imuser.entity.vo
 * @since 2022/8/3 13:22
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ContactVo {


    @NotBlank(message = "联系内容不能空")
    private String contactName;

    @NotBlank(message = "内容不能为空")
    @Length(min = 0,max = 30,message = "联系方式内容长度不应该超过30")
    private String contactInfo;
}
